<template>
  <span class="goto-detail" @click="$emit('gotoDetail', id)"><slot/></span>
</template>

<script>
export default {
  props: {
    name: {
      type: String,
      default: '查看详情'
    },
    id: {
      type: String | Number,
      default: ''
    }
  }
}
</script>

<style lang="scss">
.goto-detail {
  color: #FCB729;
}
</style>
